<%@ tag body-content="scriptless" pageEncoding="utf-8"%>
<%@ attribute name="name" rtexprvalue="true" required="true"%>
<%@ attribute name="id" rtexprvalue="true" required="true"%>
<%@ attribute name="width" type="java.lang.String" rtexprvalue="true" required="false"%>
<%@ attribute name="height" type="java.lang.String" rtexprvalue="true" required="false"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<jsp:doBody var="body" />

<%
//修正宽度
if(width!=null)
{
	if(width.indexOf("%")<0)
		width=Integer.valueOf(width)+8+"";
	width=" width=\""+width+"\"";
}
else
	width="";

//修正高度
if(height!=null)
{
	if(height.indexOf("%")<0)
		height=Integer.valueOf(height)+8+"";
	height=" height=\""+height+"\"";		
}
else
	height="";
%>

<script type="text/javascript">
<!--
$include("tags/part/style.css");
$include("tags/part/lib.js");
//-->
</script>

<table border=0 cellpadding=2 cellspacing=0<%=width%><%=height%> id="${id}$table">
<tr><td>

	<TABLE border=0 cellpadding=0 cellspacing=0 width="100%" height="100%">
	<TR>
		<TD>
			<TABLE border=0 cellpadding=0 cellspacing=0 width="100%">
			<TR>
				<TD width="12" height="5"><img src="<%=request.getContextPath()%>/opesoft/tags/part/images/part_01.png" alt=""></TD>
				<TD background="<%=request.getContextPath()%>/opesoft/tags/part/images/part_u.png"><img src="<%=request.getContextPath()%>/opesoft/tags/part/images/spacer.png" width="1" height="1" alt=""></TD>
				<TD width="12" height="5"><img src="<%=request.getContextPath()%>/opesoft/tags/part/images/part_02.png" alt=""></TD>
			</TR>
			</TABLE>
		</TD>
	</TR>
	<TR>
		<TD>
			<TABLE border=0 cellpadding=0 cellspacing=0 height="100%" width="100%">
			<TR>
				<TD width="5">
					<TABLE border=0 cellpadding=0 cellspacing=0 height="100%">
					<TR>
						<TD width="5" height="7"><img src="<%=request.getContextPath()%>/opesoft/tags/part/images/part_03.png" alt=""></TD>
					</TR>
					<TR>
						<TD background="<%=request.getContextPath()%>/opesoft/tags/part/images/part_l.png"><img src="<%=request.getContextPath()%>/opesoft/tags/part/images/spacer.png" width="1" height="1" alt=""></TD>
					</TR>
					<TR>
						<TD width="5" height="7"><img src="<%=request.getContextPath()%>/opesoft/tags/part/images/part_06.png" alt=""></TD>
					</TR>
					</TABLE>
				</TD>
				<TD>
					<table border=0 cellpadding=0 cellspacing=0 width="100%" height="100%" bgcolor="#FFFFFF">
						<tr>
							<td>
								<table border=0 cellpadding=0 cellspacing=0>
								<tr>
									<td align="left" width="24"><img src="<%=request.getContextPath()%>/opesoft/tags/part/images/show.png" alt="" onclick="${id}.turn();" id="${id}$img" style="cursor:hand;"></td>
									<td style="font-size:14px;font-family:Tahoma;color:#CCC;" id="${id}$name">${name}</td>								
								</tr>
								</table>
							</td>
						</tr>
						<tr id="${id}$body"><td id="${id}$obj">
							${body}
						</td></tr>
					</table>
				</TD>
				<TD width="5">
					<TABLE border=0 cellpadding=0 cellspacing=0 height="100%">
					<TR>
						<TD width="5" height="7"><img src="<%=request.getContextPath()%>/opesoft/tags/part/images/part_05.png" alt=""></TD>
					</TR>
					<TR>
						<TD background="<%=request.getContextPath()%>/opesoft/tags/part/images/part_r.png"><img src="<%=request.getContextPath()%>/opesoft/tags/part/images/spacer.png" width="1" height="1" alt=""></TD>
					</TR>
					<TR>
						<TD width="5" height="7"><img src="<%=request.getContextPath()%>/opesoft/tags/part/images/part_07.png" alt=""></TD>
					</TR>
					</TABLE>
				</TD>
			</TR>
			</TABLE>
		</TD>
	</TR>
	<TR>
		<TD>
			<TABLE border=0 cellpadding=0 cellspacing=0 width="100%">
			<TR>
				<TD width="12" height="5"><img src="<%=request.getContextPath()%>/opesoft/tags/part/images/part_08.png" alt=""></TD>
				<TD background="<%=request.getContextPath()%>/opesoft/tags/part/images/part_d.png"><img src="<%=request.getContextPath()%>/opesoft/tags/part/images/spacer.png" width="1" height="1" alt=""></TD>
				<TD width="12" height="5"><img src="<%=request.getContextPath()%>/opesoft/tags/part/images/part_09.png" alt=""></TD>
			</TR>
			</TABLE>
		</TD>
	</TR>
	</TABLE>

</td></tr>
</table>

<script type="text/javascript">
<!--
var ${id}=new Part('${id}');
//-->
</script>

